﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Job.Core
{
    [Serializable]
    public class SearchResultDoc<T>: SearchResult<T>
    {
        private IList<float> ds = new List<float>();
        private IList<int> di = new List<int>();

        /// <summary>
        /// 索引通用结果集
        /// </summary>
        public SearchResultDoc()
        {
        }
        
        /// <summary>
        /// 索引通用结果集
        /// </summary>
        public SearchResultDoc(SearchQuery Query)
            : this()
        {
            this.PageIndex = Query.PageIndex;
            this.PageSize = Query.PageSize;
        }


        /// <summary>
        /// 文档得分
        /// </summary>
        public IList<float> DocScore
        {
            get
            {
                return ds;
            }
            set
            {
                this.ds = value;
            }
        }
        
        /// <summary>
        /// 文档编号
        /// </summary>
        public IList<int> DocID
        {
            get
            {
                return di;
            }
            set
            {
                this.di = value;
            }
        }

    }
}
